package my.app.com.taobao.forfun.getqueryresult;

import java.io.File;

import my.java.io.FileConvertor;
import my.java.io.StringFilter;
import my.java.io.fileconvertor.GeneralFileConvertor;

public class Application {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		long start = System.currentTimeMillis();
		StringFilter filter= new TaobaoLineConvertor();
		//filter = new AddValueFilter();
		filter = new BaiduIndexStringFilter();
		FileConvertor rc = new GeneralFileConvertor(filter);
		File file = new File("D:\\f3.txt");
		rc.convert(file, file.getAbsolutePath() + ".bak");
		pl(System.currentTimeMillis() - start);

	}
	
	public static void pl(Object o) {
		System.out.println(o);
	}

}
